#ifndef ENDIAN_CAST_H
#define ENDIAN_CAST_H
#include "typedef.h"
#ifndef WIN32

#ifndef HAVE_HTONLL

#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif
#endif
#include <arpa/inet.h>
#else
#include <WinSock2.h>
#endif

uint64 htonll(uint64 n);

#define ntohll(x) htonll(x)



#endif // endif of ENDIAN_CAST_H
